﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="CRM.Web.CallOutCase.List" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="<%= base.ResourcesPath + "Style/main.css" %>" rel="stylesheet" type="text/css" />
    <link href="<%= base.ResourcesPath + "Style/button.css" %>" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/jquery-1.6.2.min.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/My97DatePicker/WdatePicker.js"  defer="defer" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/MaskTextBox.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/Common.js"></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/button.js"></script>
    <script type="text/javascript">
        $(document).ready(function() {
            $(".cbAll").live("click", function() {
                if ($(this).children().eq(0).attr("checked") == "checked") {
                    $(".cbItem").children().each(function() {
                        $(this).attr("checked", "checked");
                    });
                }
                else {
                    $(".cbItem").children().each(function() {
                        $(this).attr("checked", false);
                    });
                }
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server"  defaultbutton="btnSearch" >
        <table border="0" cellpadding="0" cellspacing="0" id="tTitle">
            <tr>
                <td class="left">
                    <img src="<%= base.ResourcesPath %>Images/title_left.gif" alt="" />
                </td>
                <td class="middle">
                    <div class="pagetitle">
                        <div>
                            <asp:Label ID="lblTitle" runat="server" Text="导入历史记录"></asp:Label></div>
                    </div>
                </td>
                <td class="right">
                    <img src="<%= base.ResourcesPath %>Images/title_right.gif" alt="" />
                </td>
            </tr>
        </table>
    <div id="divMain" >
    <div style="width: 100%">
        <div class="listdiv">
            <asp:PlaceHolder runat="server" ID="phSearch">
                <table border="0" cellpadding="0" cellspacing="0" class="search" align="center">
                    <tr>
                        <td class="left">
                            <div  class="nowrap">导入编号:</div>
                        </td>
                        <td class="content">
                            <div style="white-space: nowrap;">
                                <asp:TextBox ID="txtINPUTID" runat="server" CssClass="txt"></asp:TextBox></div>
                        </td>
                        <td class="left">
                           <div  class="nowrap">导入状态:</div>
                        </td>
                        <td class="content">
                            <div style="white-space: nowrap;">
                                <asp:DropDownList ID="ddlSTATUS" runat="server" CssClass="ddl"></asp:DropDownList>
                            </div>
                        </td>
                        <td class="left">
                            <div  class="nowrap">创建时间:</div>
                        </td>
                        <td class="content">
                            <div style="white-space: nowrap;">
                                <asp:TextBox ID="txtCREATETIMEBegin" runat="server" MaxLength="20" CssClass="datetime"></asp:TextBox>-<asp:TextBox
                                    ID="txtCREATETIMEEnd" runat="server" MaxLength="20" CssClass="datetime"></asp:TextBox></div>
                        </td>
                    </tr>
                    <tr>
                        <td class="content">
                            <div style="white-space: nowrap;">
                                <asp:Button ID="btnSearch" runat="server" Text="查 询" CommandName="Search" CssClass="btn title_cx"
                                    OnClick="btnSearch_Click" />
                            </div>
                        </td>
                        <td class="left">
                        </td>
                        <td class="left">
                        </td>
                        <td class="content">
                        </td>
                        <td class="left">
                        </td>
                        <td class="content">
                        </td>

                    </tr>
                </table>
            </asp:PlaceHolder>  
            <dp:WebGridView ID="gvList" runat="server" CssClass="gridview" 
                AutoGenerateColumns="False" OnRowCreated="gvList_RowCreated" 
                OnRowDataBound="gvList_RowDataBound" OnRowDeleting="gvList_RowDeleting" AllowPaging="True" 
                AllowSorting="True"  SortExpressionValue="INPUTID"  
                SortDirectionValue="DESC" >
                <Columns>
			    <asp:TemplateField HeaderText="操作" ShowHeader="False">
                    <itemtemplate>
                    <div style="white-space: nowrap;">
                    <asp:LinkButton id="lbtnDelete" runat="server" Text="删除" CommandName="Delete" CausesValidation="False" OnClientClick="return confirm('您确认要删除此条记录吗？');"></asp:LinkButton>            
                    </div>
				    </itemtemplate>
                </asp:TemplateField>
			        <asp:TemplateField HeaderText="导入编号" SortExpression="INPUTID">
                        <ItemTemplate>
                    <asp:HyperLink id="hlModifyCODE" runat="server" NavigateUrl='<%# Eval("INPUTID", ModifyUrl) %>' Text='<%# Bind("INPUTID") %>'></asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
			            <asp:BoundField DataField="FILENAME" HeaderText="文件名"  SortExpression="FILENAME" />
			            <asp:BoundField DataField="SHEETNAME" HeaderText="工作表名"  SortExpression="SHEETNAME" />
			            <asp:BoundField DataField="FILE_PATH" HeaderText="文件路径"  SortExpression="FILE_PATH" />
			            <asp:BoundField DataField="FILE_NUM" HeaderText="文件总条数"  SortExpression="FILE_NUM" />
			            <asp:BoundField DataField="STATUS" HeaderText="导入状态"  SortExpression="STATUS" />
			            <asp:BoundField DataField="SDATE" HeaderText="导入开始时间"  SortExpression="SDATE" />
			            <asp:BoundField DataField="EDATE" HeaderText="导入结束时间"  SortExpression="EDATE" />
			            <asp:BoundField DataField="INPUT_NUM" HeaderText="导入条数"  SortExpression="INPUT_NUM" />
			            <asp:BoundField DataField="RESULT" HeaderText="导入结果"  SortExpression="RESULT" />
			            <asp:BoundField DataField="REMARKS" HeaderText="描述信息"  SortExpression="REMARKS" />
			            <asp:BoundField DataField="TEMPLATE_NAME" HeaderText="模板名称"  SortExpression="TEMPLATE_NAME" />
			            <asp:BoundField DataField="IF_TEL" HeaderText="电话去重"  SortExpression="IF_TEL" />
			            <asp:BoundField DataField="IF_NAME" HeaderText="姓名去重"  SortExpression="IF_NAME" />
			            <asp:BoundField DataField="TASK_ID" HeaderText="活动编号"  SortExpression="TASK_ID" />
			            <asp:BoundField DataField="CREATEPEOPLEID" HeaderText="创建人编号"  SortExpression="CREATEPEOPLEID" />
			            <asp:BoundField DataField="CREATEPEOPLE" HeaderText="创建人"  SortExpression="CREATEPEOPLE" />
			            <asp:BoundField DataField="CREATETIME" HeaderText="创建时间"  SortExpression="CREATETIME" />
			            <asp:BoundField DataField="LASTMODIFYPEOPLEID" HeaderText="最后修改人编号"  SortExpression="LASTMODIFYPEOPLEID" />
			            <asp:BoundField DataField="LASTMODIFYPEOPLE" HeaderText="最后修改人"  SortExpression="LASTMODIFYPEOPLE" />
			            <asp:BoundField DataField="LASTMODIFYTIME" HeaderText="最后修改时间"  SortExpression="LASTMODIFYTIME" />
			            <asp:BoundField DataField="BUSINESSDIVISIONCODE" HeaderText="事业部编码"  SortExpression="BUSINESSDIVISIONCODE" />
			            <asp:BoundField DataField="BUSINESSDIVISIONNAME" HeaderText="事业部名称"  SortExpression="BUSINESSDIVISIONNAME" />
			    </Columns>	
                <RowStyle CssClass="row" />
                <AlternatingRowStyle CssClass="row2" />
                <HeaderStyle CssClass="header" />	
                <PagerStyle CssClass="pager" />	
            </dp:WebGridView>
        </div>
    </div>
</div>
</form>
</body>
</html>
